package com.ls.fw.search.solrj.support.annotation;


/**
 * Annotation that defines a field mapping between a java or generic field and a schema field.
 * The field corresponds to the name of it in the index data store.
 * The property is the actual name of java field and the "field" is the name in the schema file.
 * The purpose of this annotation is decoupling property names used in a java application and its
 * correspondent name in the underlying schema.
 */
public @interface Field {

  /**
   * Field name in the schema.
   * 
   * @return name of the field
   */
  String field();


  /**
   * Java/Generic property name.
   * 
   * @return name of the property
   */
  String property();
}
